package ltg.ibutton.aquaroom;

import java.sql.Timestamp;
import java.util.ArrayList;

import ltg.ibutton.core.Concept;

public class DyeTracer extends Concept implements HavingColor {
	private float x,y;
	private String station, info;
	private Timestamp timestamp;
	private String bid, type, color;
	
	public DyeTracer() {}
	
	public DyeTracer(String bid, String color) {
		this.bid = bid;
		this.color = color;
		this.info = "color="+color;
	}
	
	public DyeTracer(String bid, String color, Timestamp timestamp, float x, float y, String station) {
		this.bid = bid;
		this.color = color;
		this.timestamp = timestamp;
		this.x = x;
		this.y = y;
		this.station = station;
		this.info = "color="+color;
	}
	
	public String toString() {
		return"[Dye tracer "+this.bid+"]: "+this.timestamp+" @("+this.x+", "+this.y+"), from station "+this.station+", info: "+this.info;
	}
	
 	public String getType() { return this.type; }
	public String getColor() { return this.color; }

	@Override
	public ArrayList<ColorBand> getColors() {
		ArrayList<ColorBand> c = new ArrayList<ColorBand>();
		c.add(new ColorBand(this.color, 1.0));
		return c;
	}
	
	public String getBid() { return this.bid; }
	public Timestamp getTimestamp() { return this.timestamp; }
	public float getX() { return this.x; }
	public float getY() { return this.y; }
	public void setX(float x) { this.x = x; }
	public void setY(float y) { this.y = y; }
	public void setTimestamp(Timestamp t) { this.timestamp = t; }
	public String getStationId() { return this.station; }
	public void setStationId(String station) { this.station = station; }
	public String getInfo() { return this.info; }
	
	
	
}
